package com.smmisia.common.entity.auth.convertor;

import com.smmisia.common.entity.auth.SysMenu;
import com.smmisia.common.request.auth.MenuRequest;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface SysMenuConvertor {

    SysMenuConvertor INSTANCE = Mappers.getMapper(SysMenuConvertor.class);

    SysMenu toEntity(MenuRequest request);
}
